package cn.com.inossem.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public class MessageInfoBean implements Parcelable, Serializable {

	private String id;
	/**
	 * 用户id
	 */
	private int userID;
	/**
	 * 公司名字
	 */
	private String useType;
	/**
	 * 消息内容
	 */
	private String content;
	/**
	 * 申请项目ID
	 */
	private String applyProjectID;
	/**
	 * 申请好友ID
	 */
	private int applyFriendID;
	/**
	 * 是否已读 0 未读，1 已读
	 */
	private String isRead;
	/**
	 * 新项目提醒ID
	 */
	private String newProjectID;

	private String createTime = "";

	private UserInfo applyFriend;

	public MessageInfoBean() {

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public String getUseType() {
		return useType;
	}

	public void setUseType(String useType) {
		this.useType = useType;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getApplyProjectID() {
		return applyProjectID;
	}

	public void setApplyProjectID(String applyProjectID) {
		this.applyProjectID = applyProjectID;
	}

	public int getApplyFriendID() {
		return applyFriendID;
	}

	public void setApplyFriendID(int applyFriendID) {
		this.applyFriendID = applyFriendID;
	}

	public String getIsRead() {
		return isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	public String getNewProjectID() {
		return newProjectID;
	}

	public void setNewProjectID(String newProjectID) {
		this.newProjectID = newProjectID;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public UserInfo getApplyFriend() {
		return applyFriend;
	}

	public void setApplyFriend(UserInfo applyFriend) {
		this.applyFriend = applyFriend;
	}

	private MessageInfoBean(Parcel in) {

		id = in.readString();
		useType = in.readString();
		content = in.readString();
		applyProjectID = in.readString();
		applyFriendID = in.readInt();
		isRead = in.readString();
		newProjectID = in.readString();
		createTime = in.readString();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(useType);
		dest.writeString(content);
		dest.writeString(applyProjectID);
		dest.writeInt(applyFriendID);
		dest.writeString(isRead);
		dest.writeString(newProjectID);
		dest.writeString(createTime);
	}

	public static final Parcelable.Creator<MessageInfoBean> CREATOR = new Parcelable.Creator<MessageInfoBean>() {
		public MessageInfoBean createFromParcel(Parcel in) {
			return new MessageInfoBean(in);
		}

		public MessageInfoBean[] newArray(int size) {
			return new MessageInfoBean[size];
		}
	};

}
